package com.sansan.qiangji.controller.board;

import com.sansan.qiangji.form.base.BaseWageAccountListForm;
import com.sansan.qiangji.form.base.ShelveListForm;
import com.sansan.qiangji.realize.board.BoardReal;
import com.sansan.qiangji.resultVO.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin()
@RestController
@RequestMapping("/board")

public class BoardController {

    @Autowired
    private BoardReal boardReal;

    //最近七天仓库出入库统计
    @GetMapping("/countBox7Days")
    public ResultVO countBox7Days(){
      return boardReal.countBox7Days();
    }

    //库位利用率
    @PostMapping("/shelveStockUseRate")
    public ResultVO shelveStockUseRate(@RequestBody ShelveListForm shelveListForm){
        return boardReal.shelveStockUseRate(shelveListForm);
    }

    //工资核算报表
    @PostMapping("/getWageAccountVOList")
    public ResultVO getWageAccountVOList(@RequestBody BaseWageAccountListForm form){
        return boardReal.getWageAccountVOList(form);
    }

}
